<?php
namespace app\portal\controller;


use app\portal\model\RecruitmentModel;
use cmf\controller\HomeBaseController;

class ContactController extends HomeBaseController
{
    /**
     * 联系我们页面
    */
    public function index()
    {
        return $this->fetch(':contact');
    }

    /**
     * 社会招聘
     */
    public function recruit()
    {
        $recruitmentModel = new RecruitmentModel();
        $list = $recruitmentModel->order('id','desc')->paginate(20);
        $this->assign('recruitmentList',$list);
        $this->assign('page', $list->render());
        return $this->fetch(':recruit');
    }
}